package com.atguigu.Mytest;

public class Client {
    public static void main(String[] args) {
        Resource resource = new Resource();

        Thread t1 = new Thread(resource,"A");
        Thread t2 = new Thread(resource,"B");
        Thread t3 = new Thread(resource,"C");
//        ExecutorService threadpool = Executors.newFixedThreadPool(5);
            t1.start();
            t2.start();
            t3.start();

    }
}
